# The following lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)

if(NOT DEFINED ENV{HOMEKIT_PATH})
    message(FATAL_ERROR "Please set HOMEKIT_PATH to esp-homekit-sdk repo")
endif(NOT DEFINED ENV{HOMEKIT_PATH})

# Add RainMaker components and other common application components
set(EXTRA_COMPONENT_DIRS ${CMAKE_CURRENT_LIST_DIR}/../../components ${CMAKE_CURRENT_LIST_DIR}/../common $ENV{HOMEKIT_PATH}/components/homekit)

set(PROJECT_VER "1.0")
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(homekit_switch)
